package com.meal.base.test.DesignMode.state;

/**
 * @program: meal->Off
 * @description: 关
 * @author: yangzhanghui
 * @create: 2020-04-03 18:21
 **/
public class Off implements State {
    @Override
    public void switchOn(Switcher switcher) {
        switcher.setState(new On());
        System.out.println("OK...灯亮");
    }

    @Override
    public void switchOff(Switcher switcher) {
        System.out.println("WARN!!!断电状态无需再关");
        return;
    }
}